<template>
    <div>
        <dv-loading v-if="!loading"></dv-loading>
        <dv-scroll-board :config="config" style="width:600px;height:300px;margin:auto;" class="text-xs" v-if="loading"/>
    </div>
</template>

<script>
    //轮播
    export default {
        route: false,
        async created() {
            const lists = await this.axios.get('order')
            this.form = lists
            this.form = this.form.map(function (item) {
               return Object.values(item)
            });
            this.config.data=this.form
            this.loading = true
        },
        data() {
            return {
                loading: false,
                form: [],
                config: {
                    header: ['编号', '名称','价格','折扣'],
                    evenRowBGC:'#0A2732',
                    data: [],
                    index: true,
                    columnWidth: [80,160,200],
                    align: ['center'],
                    rowNum:5
                }
            }
        }
    }
</script>

<style scoped>

</style>